package com.cdcas;


public class StringBufferDemo {
    public static void main(String[] args) {
        String a = "aaaaaaaddd";
        StringBuffer sBuffer = new StringBuffer(a );
        System.out.println("原始数据：" + sBuffer);
        String b = sBuffer.toString();
        System.out.println("从StringBUffer转为string类型：" + b);
        System.out.println("转化为大写字母：" + b.toUpperCase());
    }
}
